package com.test.cities.service;

import java.util.List;

import com.github.pagehelper.PageInfo;
import com.test.cities.dto.BookDTO;
import com.test.cities.po.Book;
import org.apache.ibatis.annotations.Param;



public interface BookService {

	List<Book> search(@Param("bookDTO")BookDTO bookDTO);

	void insert(@Param("book")Book book);

	List<Book> searchAll();

	PageInfo<Book> searchAllPage(Integer pageIndex, Integer pageSize);

	PageInfo<Book> searchByDto(Integer pageIndex, Integer pageSize, BookDTO bookDTO);

	Book searchByCode(String code);

	void edit(Book book);

}
